Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>
const firstGrab = this._modalCount === 0;
if (firstGrab) {
const grab = Main.pushModal(this._owner, this._modalParams);
- if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
- Main.popModal(grab);
- return false;
- }
-
this._grab = grab;
this._clickGesture = new Clutter.ClickGesture();
this._clickGesture.connect('recognize', () => {